package com.honghu.cloud.tools;


/**
 * 
 * <p>
 * Title: ClusterSyncTools.java
 * </p>
 * 
 * <p>
 * Description: 集群下同步文件
 * </p>
 * 
 * <p>
 * Copyright: Copyright (c) 2016
 * </p>
 * 
 * <p>
 * Company: www.minglisoft.cn
 * </p>
 * 
 * @author honghu
 * 
 * @date 2016-10-07
 * 
 * @version honghu_b2b2c v6.0 2016版
 */
public class ClusterSyncTools {
	

	public static boolean isUnix() {
		String osname = System.getProperties().getProperty("os.name");
		String windows = "windows";
		String linux = "linux";
		if (osname != null && osname.toLowerCase().contains(windows)) {
			return false;
		} else if (osname != null && osname.toLowerCase().contains(linux)) {
			return true;
		}
		return true;
	}

	public static boolean isWins() {
		String osname = System.getProperties().getProperty("os.name");
		String windows = "windows";
		String linux = "linux";
		if (osname != null && osname.toLowerCase().contains(windows)) {
			return true;
		} else if (osname != null && osname.toLowerCase().contains(linux)) {
			return false;
		}
		return true;
	}
	

}
